package com.ghc.controller;

import com.ghc.service.CreateCodeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/code")
@RequiredArgsConstructor
public class CodeController {

    private final CreateCodeService createCodeService;

    @RequestMapping("/create/{email}")
    public Boolean create(@PathVariable String email){
        return createCodeService.create(email);
    }

}
